Repository navigation
FIX: Fix const qualifier errors with C23 string functions - #1055
Merged
Merged
Conversation
zhy2on
force-pushed
the
fix-strstr-error
branch
from
November 19, 2026 06:32
311f916 to
fb39b8f
Compare
Collaborator
|
CI 버전 고정과 빌드 실패 수정은 별도 commit으로 분리하는 것이 낫겠습니다. |
zhy2on
force-pushed
the
fix-strstr-error
branch
from
November 19, 2026 06:48
fb39b8f to
6fb1afb
Compare
jhpark816
approved these changes
Nov 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔗 Related Issue
⌨️ What I did
CI의
ubuntu-latest가 26.04로 바뀌면서 빌드가 실패합니다.26.04의 gcc 15는 기본 표준이 C23이고, glibc 2.43은 C23에서
strstr/memchr에 const 문자열을 넘기면 const 포인터를 반환합니다.그래서 결과를
char *로 받는 곳이-Werror=discarded-qualifiers로 실패해, 아래와 같이 수정했습니다.get_bkey_range_from_str,get_position_range_from_str: 문자열을 직접 수정하므로 인자를char *로 바꿨습니다. 같은 파일의get_list_range_from_str과 같은 형태입니다.prefix_link,do_stats_prefix_insert,stats_prefix_find:token을 위치 계산에만 쓰므로const char *로 바꿨습니다.